using UnityEngine;

namespace Game.Core.Loader
{
	public class AssetBundleData
	{
		public int quoteNum;

		public AssetBundleCreateRequest www;

		public AssetBundle assetBundle;

		public AssetBundleRequest request;

		public Object resource;

		public Sprite[] sprites;

		public AssetBundleData(AssetBundleCreateRequest www, int quoteNum = 1)
		{
			this.quoteNum = quoteNum;
			this.www = www;
		}

		public void Dispose()
		{
			if ((bool)assetBundle)
			{
				assetBundle.Unload(false);
			}
			assetBundle = null;
			if (www != null)
			{
				www = null;
			}
			request = null;
			resource = null;
			sprites = null;
		}
	}
}
